//
//  HCStardTableViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/1/20.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCStardTableViewCell.h"

#import "HCStarDidModel.h"

@implementation HCStardTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.lineView.backgroundColor = YBKRGBCOLOR(232, 232, 232, 1);
    self.headIMG.layer.masksToBounds = YES;
    self.headIMG.layer.cornerRadius = 5.0f;
    
    // Initialization code
}

-(void)setModel:(id)model {
    HCStarDidData *data = (HCStarDidData *)model;
    
    [self.headIMG sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",data.logo]]];
    self.titleName.text = [NSString stringWithFormat:@"%@",data.name];
    self.timeLabel.text = [NSString stringWithFormat:@"%@",data.time];
    self.descLabel.hidden = YES;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
